<!--
描述：实践环节组件
开发人：fwb
开发日期：2017年8月22日
-->
<template lang="pug">
    keep-alive
        kalix-table(bizKey="practiceCourse" title='实践环节信息列表' v-bind:tableFields="tableFields" v-bind:targetURL="targetURL"
        v-bind:bizDialog="bizDialog" v-bind:bizSearch="'PracticeCourseSearch'" v-bind:btnList="btnList" v-bind:dictDefine="dictDefine"
        v-bind:isFixedColumn="isFixedColumn")
</template>

<script type="text/ecmascript-6">
    import {PracticeCourseURL, ToolButtonList} from '../../config.toml'

    export default {
        name: 'kalix-admin-practicecourse',
        data() {
            return {
                btnList: ToolButtonList,
                dictDefine: [{ // 定义数据字典的显示
                    cacheKey: 'ADMIN-DICT-KEY',
                    type: '环节类别',
                    targetField: 'hjlbName',
                    sourceField: 'hjlb'
                }],
                targetURL: PracticeCourseURL,
                tableFields: [
                    {prop: 'kcdm', label: '环节'},
                    {prop: 'cddwmc', label: '承担单位'},
                    {prop: 'hjlbName', label: '环节类别'},
                    {prop: 'ywmc', label: '英文名称'},
                    {prop: 'zxf', label: '学分'},
                    {prop: 'zxs', label: '周数'}
                ],
                bizDialog: [
                    {id: 'view', dialog: 'PracticeCourseView'},
                    {id: 'edit', dialog: 'PracticeCourseAdd'},
                    {id: 'add', dialog: 'PracticeCourseAdd'}
                ],
                isFixedColumn: true
            }
        },
        components: {},
        created() {
        },
        activated() {
        },
        deactivated() {
        },
        methods: {}
    }
</script>

<style scoped lang="stylus">
</style>
